#coding=utf-8

from flask import render_template,make_response,jsonify
from . import blue_api

@blue_api.app_errorhandler(404)
def not_found(error):
    return make_response(jsonify({'error': 'Not found'}), 404)

@blue_api.app_errorhandler(500)
def internal_server_error(e):
    return make_response(jsonify({'error': 'system err'}), 500)